#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

#include "skip_list.h"

int main(void) {

    skiplist s = creer_skiplist();

    inserer(s, 4);
    inserer(s, 11);
    inserer(s, 1);
    inserer(s, 7);
    inserer(s, 1);
    inserer(s, 21);
    afficher_skiplist(s);

    printf("\nSuppression de 4\n");
    effacer(s, 4);
    afficher_skiplist(s);

    printf("\nInsertion de 1, 12, 25, 4\n");
    inserer(s, 1);
    inserer(s, 12);
    inserer(s, 25);
    inserer(s, 4);

    afficher_skiplist(s);

    printf("\n21 est dans la liste : %d\n", est_dans_la_liste(s, 21));
    printf("\nNiveau de la liste : %d\n", getNiveau(s)); 

    /* printf("\nAffichage complet :\n");
    afficher_complet_skiplist(s);
    */

    return EXIT_SUCCESS;
}
